import request from '@/utils/request'

// 查询查询条件列表
export function listRetrievecondition(query) {
  return request({
    url: '/components/retrieve/list',
    method: 'get',
    params: query
  })
}


export function baseListRetrieveCondition(query) {
  return request({
    url: '/components/retrieve/baseList',
    method: 'get',
    params: query
  })
}

// 查询查询条件详细
export function getRetrievecondition(ctId) {
  return request({
    url: '/components/retrieve/' + ctId,
    method: 'get'
  })
}

// 新增查询条件
export function addRetrievecondition(data) {
  return request({
    url: '/components/retrieve',
    method: 'post',
    data: data
  })
}

// 修改查询条件
export function updateRetrievecondition(data) {
  return request({
    url: '/components/retrieve/edit',
    method: 'post',
    data: data
  })
}

// 删除查询条件
export function delRetrievecondition(ctId) {
  return request({
    url: '/components/retrieve/delete/' + ctId,
    method: 'post'
  })
}

// 导出查询条件
export function exportRetrievecondition(query) {
  return request({
    url: '/components/retrieve/export',
    method: 'get',
    params: query
  })
}
